
class UTEPedConst {
  /// UTEPed sdk 全局常量

  /// 自动重连时间
  static const autoConnectTimeout = 40;

  /// 手表连接状态
  static const stateIDLE = -1;
  static const stateDisconnected = 0;
  static const stateConnecting = 1;
  static const stateConnected = 2;

  /// 断开连接类型
  static const disconnectTypeNone = 0;
  static const disconnectTypeIdChange = 2;
  static const disconnectTypeReset = 3;
  static const disconnectTypeBond = 4;

  /// 用户操作状态
  static const userStateIDLE = 100;
  static const userStateDisconnected = 101;
  static const userStateConnecting = 102;
  static const userStateConnected = 103;
  static const userStateUnbinding = 104;
  static const userStateDisconnecting = 105;

  /// status code
  static const codeSuccess = 100000;
  static const errorCode408 = 408;

  /// key
  static const keyPath = "path";
  static const keyMethod = "method";
  static const keyName = "name";
  static const keyData = "data";
  static const keyNameEN = "name_en";
  static const keyUserId = "userId";
  static const keyStatus = "status";
  static const keyAddress = "address";
  static const keyModel = "model";
  static const keyBattery = "battery";
  static const keyDeviceList = "device_list";
  static const keyAction = "action";
  static const keyEnable = "enable";
  static const keyValue = "value";
  static const keyResult = "result";
  static const keyTimeFormat = "time_format";
  static const keyLanguage = "language";
  static const keyLanguageCode = "language_code";
  static const keyLanguageName = "language_name";
  static const keyLanguageFollowSystem = "language_follow_system";
  static const keySuccess = "success";
  static const keyErrorCode = "error_code";
  static const keyType = "type";
  static const keyPermission = "permission";
  static const keySystem = "system";
  static const keyFile = "file";
  static const keyUpgradeInfo = "upgrade_info";
  static const keyUpgradable = "upgradable";
  static const keyUpgradeFilePath = "upgrade_file_path";
  static const keyUpgradeDialogShow = "upgrade_dialog_show";
  static const keyFirmware = "firmware";
  static const keyFirmwareVersion = "firmware_version";
  static const keyPackageName = "packageName";
  static const keyAppInfo = "appInfo";
  static const keyFromQrcode = "fromQrcode";
  static const keyPackage = "package";
  static const keyProgress = "progress";
  static const keyDuration = "duration";

  static const keyBindBT3 = "bindBT3";
  static const  keyConnectHeadset = "connectHeadset";
  static const  keyConnectA2dp = "connectA2dp";
  static const keyReset = "reset";

  /// action
  static const actionConnect = "act_connect";
  static const actionDisconnect = "act_disconnect";
  static const actionConnectTimeout = "act_connect_timeout";
  static const actionConnectReject = "act_connect_reject";
  static const actionBatteryInfo = "act_battery_info";
  static const actionSyncDataComplete = "act_sync_data_complete";
  static const actionSyncContactState = "act_sync_contact_state";
  static const actionSyncContactProgress = "act_sync_contact_progress";
  static const actionSyncSmsReplyState = "act_sync_sms_reply_state";
  static const actionSyncSmsReplyProgress = "act_sync_sms_reply_progress";
  static const actionSyncFutureWeather = "act_sync_weather";
  static const actionSyncExerciseOperator = "act_sync_exercise_operator";
  static const actionSyncExerciseRealState = "act_sync_exercise_real_state";
  static const actionSyncExerciseGps = "act_sync_exercise_gps";
  static const actionSyncExerciseFinished = "act_sync_exercise_finished";
  static const actionSportDataNotify = "act_sport_data_notify";
  static const actionBluetoothStateOn = "act_bluetooth_state_on";
  static const actionBluetoothStateOff = "act_bluetooth_state_off";
  static const actionAppNotificationCheck = "act_app_notification_check";
  static const actionComplete = "action_complete";
  static const actionFailed = "action_failed";
  static const actionProgress = "action_progress";

  /// req from app
  static const actionRemoteRefresh = "act_remote_refresh";

  /// path
  static const pathHome= "home";
  static const pathDevice = "device";
  static const pathSports = "sports";
  static const pathSpace = "space";
  static const pathCommon = "common";

  static const String pathContact = "contact";
  static const String pathWeather = "weather";
  static const String pathMenstrual = "menstrual";
  static const String pathWatchFace = "watchFace";

  static const pathDeviceOptions = "device_options";

  /// method
  static const methodConnect = "connect";
  static const methodDisconnect = "disconnect";
  static const methodSetScreenAutoLight = "setScreenAutoLight";
  static const methodCheckPermissions = "checkPermissions";

  static const methodGetMotionSummaryData = "getMotionSummaryData";
  static const methodSyncSleepHistoryData = "syncSleepHistoryData";
  static const methodSyncFitnessHistoryData = "syncFitnessHistoryData";
  static const methodSetNotificationEnable = "setNotificationEnable";
  static const methodTurnBluetooth = "turnBluetooth";
  static const methodSetContinuousBloodOxygen = "setContinuousBloodOxygen";
  static const methodSetLanguage = "setLanguage";
  static const methodSetSmsReplyEnable = "setSmsReplyEnable";
  static const methodSyncSmsReplyContent = "syncSmsReplyContent";
  static const methodSmsReplyContentCount = "smsReplyContentCount";

  static const methodSetLengthUnits = "setLengthUnits";
  static const methodSetWeightUnits = "setWeightUnits";
  static const methodSetTemperatureUnit = "setTemperatureUnit";

  /// local notification
  static const methodLocalNotify = "localNotify";

  /// device
  static const methodIsBluetoothEnable = "isBluetoothEnable";
  static const methodIsConnected = "isConnected";
  static const methodIsConnectedGatt = "isConnectedGatt";
  static const methodGetDeviceInfo = "getDeviceInfo";
  static const methodGetBatteryInfo = "getBatteryInfo";
  static const methodGetBondedDevices = "getBondedDevices";
  static const methodGetDefaultConfiguration = "getDefaultConfiguration";
  static const methodIsDeviceBusy = "isDeviceBusy";
  static const methodCameraControl = "cameraControl";

  /// space methods
  static const methodSetMotionGoal = 'setMotionGoal';

  /// sports
  static const methodGetDeviceOperatorState = "getDeviceOperatorState";
  static const methodSetDeviceOperator = "setDeviceOperator";
  static const methodSetGpsParams = "setGpsParams";
  static const methodSetWorkoutRealTimeData = "setWorkoutRealTimeData";
  static const methodSetSportOneRecord = "setSportOneRecord";
  static const methodSportRecordReport = "sportRecordReport";
  static const methodSetIsOpenWorkoutOperatorReport = "setIsOpenWorkoutOperatorReport";
  static const methodQueryWorkoutManageInfo = "queryWorkOutManageInfo";
  static const methodSetWorkoutManageInfo = "setWorkOutManageInfo";
  static const methodStartGpsSignal = "startGpsSignal";
  static const methodStopGpsSignal = "stopGpsSignal";

  /// weather
  static const methodSetFutureWeather = "setFutureWeather";

  /// calendar cycle
  static const methodSetPhysiologicalTime = "setPhysiologicalTime";
  static const methodSetCycle = "setCycle";

  /// permission
  static const permissionBluetooth = "p_bluetooth";
  static const permissionLocation = "p_location";
  static const permissionContact = "p_contact";
  static const permissionCall = "p_call";
  static const permissionSms = "p_sms";
  static const permissionStorage = "p_storage";
  static const permissionUpgrade = "p_upgrade";

  static const typeList = "list";

  /// sync state
  static const syncStateStart = 1;
  static const syncStateFinish = 2;
  static const syncStateFail = 3;

  /// camera control
  static const openCamera = 1;
  static const photograph = 2;
  static const closeCamera = 3;

  static const String appRemindOtherId = 'app_remind_other';
  static const String appCloseAll = "app_close_all";
}